import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  // 关于我们
  {
    path: '/detail',
    name: 'detail',
    component: () => import('../views/Detail.vue'),
  },
  {
    path: '/membercenter',
    name: 'membercenter',
    component: () => import('../views/MemberCenter.vue'),
  },
  {
    // /teacherlogin/changepwd
    path: "/teacherlogin",
    name: "teacherlogin",
    component: () => import("../views/TeacherLogin.vue"),
    children: [
      {
        path: "changepwd",
        name: "changepwd",
        component: () => import("../views/ChangePwd.vue"),
      },
      {
        path: "resume",
        name: "resume",
        component: () => import("../views/Resume.vue"),
      },
      {
        path: "cours",
        name: "cours",
        component: () => import("../views/TeacherCours.vue"),
      },
      {
        path: 'reamname',
        name: 'reamname',
        component: () => import('../views/ReamName.vue'),
      },
    ],
  },
  {
    // 学生基本信息
    path: "/foward",
    name: "foward",
    component: () => import("../views/FoWard.vue"),
  },
  {
    path: "/aboutus",
    name: "aboutus",
    component: () => import("../views/AboutUs.vue"),
  },
  {
    path: "/zsd",
    name: "zsd",
    component: () => import("../test/ZsdLogin.vue"),
  },
  {
    path: "/checked",
    name: "checked",
    component: () => import("../test/checked.vue"),
  },
  {
    path: "*",
    name: "notfound",
    component: () => import("../views/NotFound.vue"),
  },
  {
    path: "/scroll",
    name: "scroll",
    component: () => import("../test/scrolltext.vue"),
  },
  {
    path: "/",
    name: "index",
    component: () => import("../views/index.vue"),
  },
  // {
  //   path: '/',
  //   name: 'home',
  //   component: () => import('./pathToComponent'),
  // },
];

const router = new VueRouter({
  mode: "history",
  base: process.env.BASE_URL,
  routes,
});

export default router;
